﻿@model EventSys.BussinesEntities.webpages_Roles

@{
    ViewBag.Title = "NuevoRol";
    //Layout = "~/Views/Shared/_Layout.cshtml";
    var ajaxoption = new AjaxOptions()
    {
        OnSuccess = "OnSuccessCreate"
    };
}

<fieldset>
<legend><h3><b>Registro</b></h3></legend>

@using (Ajax.BeginForm(null, null, ajaxoption, new { id = "frmGuardar", name = "frmGuardar" }))
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        @*<div class="editor-label">
            @Html.LabelFor(model => model.RoleId)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.RoleId)
            @Html.ValidationMessageFor(model => model.RoleId)
        </div>*@

        <div class="editor-label">
            Nombre de Rol
            @*@Html.LabelFor(model => model.RoleName)*@
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.RoleName)
            @Html.ValidationMessageFor(model => model.RoleName)
        </div>

        <p>
            <input type="submit" value="Crear", class="k-button" />
        </p>
    </fieldset>
}


@*<div>
    @Html.ActionLink("Back to List", "Index")
</div>*@

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
